﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wekit.Model.Auth;

namespace Wekit.Repository.Auth
{
    /// <summary>
    /// 用户操作定义表
    /// </summary>
    public  interface IUserRepository
    {
        /// <summary>
        /// 添加用户实体
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        User addUser(User user);

        /// <summary>
        /// 删除相关的用户数据实体
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        bool deleteUser(User user);

        /// <summary>
        /// 根据用户的登录名来获取实际上的用户名称
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        User queryUserByUserId(string userId);
    }
}
